package com.gumanx;

import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.monster.EntityBlaze;
import net.minecraft.entity.projectile.EntityThrowable;
import net.minecraft.util.DamageSource;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;

public class EntityWeaponBlasterRifle extends EntityThrowable
{
    public EntityWeaponBlasterRifle(World par1World)
    {
        super(par1World);
    }

    public EntityWeaponBlasterRifle(World par1World, EntityLiving par2EntityLiving)
    {
        super(par1World, par2EntityLiving);
    }

    public EntityWeaponBlasterRifle(World par1World, double par2, double par4, double par6)
    {
        super(par1World, par2, par4, par6);
    }
    
    protected float getGravityVelocity()
    {
        return 0;
    }

    /**
     * Called when this EntityThrowable hits a block or entity.
     */
    protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
    {
        for (int i = 0; i < 8; ++i)
        {
            this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
        }   	
        this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, 2, true);		
        this.setDead();
    }
}
